import * as types from './type'
const state = {
	loading: false,
	poptime:false
};

const mutations = {
	/*loading*/
	[types.HIDE_LOADING](state) {
		state.loading = false;
	},
	[types.SHOW_LOADING](state) {
		state.loading = true;
	},
	/*poptime 开店关店*/
	[types.HIDE_POPTIME](state) {
		state.poptime = false;
	},
	[types.SHOW_POPTIME](state) {
		state.poptime = true;
	},
	
}

const getters = {
	
	loading(state) {
		return state.loading;
	},
	poptime(state){
		return state.poptime;
	}
	
};

export default {
	state,
	mutations,
	getters
}